<?php
    require_once dirname(__FILE__) . '/../../utils/Utils.php';
    //引入公共参数
    $constant = include(dirname(__FILE__) . '/../../AppletConstant.php');

    $utils =	new Utils();
	
	/**
	 * 签约关系查询
	 *
	 */

	//调用地址
	$url = "https://open.95516.com/open/access/1.0/contract.info";

	//拼装参数Map
	$params 	=	array();
    $params["appId"] 			=	$constant['appId'];
    $params["openId"] 			=	$constant['openId'];
    $params["backendToken"] 	=	$constant['backendToken'];

    //协议模板id，由云闪付录入模板并分配给接入方
	$params["planId"] 			=	"";

	//发送请求
	$resultStr 	=	$utils->sendPostGson($url,$params);
	
	print_r("-------获取签约关系查询信息: ".$resultStr." --------- ");
    exit();
?>